class Animal{
    public String name;
    public int age;
    public String sex;
    static{
        System.out.println("Animals::static{}");
    }
 
    {
        System.out.println("Animals::{}");
    }
    public Animal(){
        System.out.println("Animals()");
    }
 
}
class Cat1 extends Animal{
    static{
        System.out.println("Cat::static{}");
    }
    public Cat1(){
        System.out.println("Cat()");
    }
 
    {
        System.out.println("Cat::{}");
    }
 
}
public class Dogg extends Animal {
    public String name;
    public int age;
 
    static{
        System.out.println("Dog::static{}");
    }
    public Dogg(){
        System.out.println("Dog()");
    }
 
    {
        System.out.println("Dog::{}");
    }

    public static void main(String[] args) {

        Cat1 cat = new Cat1();
        Dogg dog = new Dogg();



    }

}
